<template>
    <a class="newIkj" :href="news.url" target="_blank">
        <span class="title">{{ news.title }}</span>
        <img class="pic" :src="news.pic" alt="">
    </a>
</template>
<script>
    export default {
        props:['news']
    }
</script>
<style>
.newIkj{
    display: flex;
    float: left;
    max-width: 500px;
    min-width: 200px;
    border: 1px solid rgba(128, 128, 128, 0.274);
    position: relative;
    border-radius: 10px;
    padding: 10px;
    margin: 2vh 2vw;
    box-shadow: 3px 3px 3px gray;
    background: linear-gradient(to right bottom,rgb(0, 94, 128),wheat);
    animation: 2s dong;

}
.newIkj:hover{
    background: linear-gradient(to right bottom,rgba(128, 0, 117, 0.671),rgb(179, 245, 245));

}
.title{
    /* position: absolute; */
    float: left;
    text-indent: 2em;
    /* max-width: 50%; */
    border-bottom: 1px solid rgb(46, 133, 121);
    color: rgba(225, 228, 51, 0.973);
    display: inline-block;
    float: left;

}
.pic{
    float: right;
    max-width: 48%;
    border-radius: 10px;
    margin-left: 20px;
}
@keyframes dong {
    from {
        transform: rotate3d(0);
    }
    to {
        transform: rotate3d(1,0,0,1turn);
    }
    
}
</style>